Template System Installation Guide

Overview

This guide will help you install the Template Manager system for your Phoenix Cart store. The process is straight forward and requires copying files and running a simple installation script.

Installation Steps

Step 1: Upload All Required Files

Upload the following files to your server:

    install_template_system.php → your-store-root-directory/
    templates.php → your-admin-folder/
    modules/boxes/tools_templates.php → your-admin-folder/includes/modules/boxes/
    languages/english/modules/boxes/tools_templates.php → your-admin-folder/includes/languages/english/modules/boxes/

Step 2: Run the Installation Script

    Navigate to https://your-store.com/install_template_system.php in your browser
    Enter your admin folder name 
    Click the "Install Template System" button
    The script will create the necessary database table and check the template directory structure

Step 3: Clean Up

Delete the install_template_system.php file from your server for security.

Step 4: Access the Template Manager

    Log in to your admin panel
    Look for "Templates Manager" in the Tools menu
    You're ready to start managing templates!

Using the Template Manager

Creating Templates

Click "Create New Template" to make a new template. The system will:

    Create the necessary directory structure
    Set up basic template files
    Add the template to the database

Managing Templates

    Activate a template with the green checkmark
    De-Activate a template with the red x checkmark
    View template details with the eye icon
    Delete unused templates with the trash icon

Template Structure

Templates are stored in the templates/ directory with this structure:

code

templates/your_template_name/
├── includes/
│   └── template.php
└── static/
    └── user.css

Troubleshooting

    If you see permission errors, check your file/directory permissions
    For database errors, verify your database user has sufficient privileges

That's it! Your Template Manager is now installed and ready to use.
